package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     *
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工业务方法
     * @param employeeDTO
     */
    void create(EmployeeDTO employeeDTO);

    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    Employee transitionStatus(Integer status, Long id);

    Employee queryById(Long id);

    /**
     * 编辑员工信息
     * @param employeeDTO
     * @return
     */
    Employee updateById(EmployeeDTO employeeDTO);

    /**
     * 修改登录密码
     * @param passwordEditDTO
     * @return
     */
    Employee updatePassword(PasswordEditDTO passwordEditDTO);
}
